package com.warehouse.sys.common;


import com.alibaba.fastjson.JSON;

/**
 * @program: warehouse
 * @description: ${description}
 * @author: Mr.Jiao
 * @create: 2020-05-30 00:38
 */
public class CacheBean {
    private String key;

    private Object value;

    public CacheBean() {
    }

    public CacheBean(String key, Object value) {
        super();
        this.key = key;
        this.value = value;
    }
//1
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return JSON.toJSON(value).toString();
    }

    public void setValue(Object value) {
        this.value = value;
    }

}
